﻿using DAO;
using DTO;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QLDaiLy
{
    public partial class FrmReportCongNo : Form
    {
        public FrmReportCongNo()
        {
            InitializeComponent();
        }
        private void FrmReportCongNo_Load(object sender, EventArgs e)
        {
            // string thang = DateTime.Today.ToString();
            string thang = DateTime.Now.Month.ToString();
            ReportBaoCaoCongNo frm = new ReportBaoCaoCongNo();
            List<BaoCaoCongNoDTO> dt = BaoCaoCongNoDAO.baoCaoTheoThang(thang);
            frm.DataSource = dt;
            frm.BindData();
            printControlCongNo.PrintingSystem = frm.PrintingSystem;
            frm.CreateDocument();
        }
    }
}
